Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Java
1) 2D Graphics GUI
2) 3D Graphics
3) Advanced Graphics
4) Ant
5) Apache Common
6) Applet
7) Awt
8) Beginners Lab
9) Chart
10) Class
11) Collections Data Structure
12) Core
13) Data Type
14) Database SQL JDBC
15) Date Time
16) Design Pattern
17) Development Class
18) EJB3
19) Email
20) Event
21) File Input Output
22) Game
23) Generics
24) GWT
25) Hibernate
26) Internationalization
27) J2EE
28) J2ME
29) JDBC
30) JDK
31) JNDI LDAP
32) JPA
33) JSP
34) JSTL
35) Language Basics
36) Learning
37) Mathematics
38) Network Protocol
39) PDF RTF
40) Reflection
41) Regular Expressions
42) Scripting
43) Security
44) Servlets
45) Session
46) Sound
47) Spring
48) Swing Components
49) Swing JFC
50) SWT Jface Eclipse
51) Threads
52) Tiny Application
53) Util
54) Velocity
55) Web Services SOA
56) XML
SWT Jface Eclipse
1) A BorderLayout
2) A facade for the save FileDialog
3) A paint canvas
4) A progress bar dialog
5) A survey using a wizard
6) A table of baseball players and allows sorting
7) Add a select all menu item to the control
8) Align widgets in a GridLayout
9) Alpha Fade In
10) An address book, using a wizard to add a new entry
11) Animations Example
12) Another Address Book Demo in SWT
13) Another SWT Browser
14) Another SWT Browser Demo
15) Arrow Button Example
16) Basic Editor
17) Basic Editor 2
18) Basic Editor 3
19) Bookmark Organizer
20) BorderLayout Sample
21) Bring up a browser
22) Bug Report
23) Bug Tracker
24) Bug Tracker JFace
25) Button Example
26) Button Selection Event
27) Button Styles
28) Calculator by Michael Schmidt
29) Canvas example snippet
30) Capture a widget image with a GC
31) Category Tree
32) Child Shell Example
33) Child Shell Example 2
34) Child Shell Example 3
35) CLabel Border
36) CLabel Gradient Background
37) Class Analyzer
38) Clip Image
39) Clipboard Composite
40) Color cells and rows in SWT table
41) Color Dialog Example
42) Combo (ComboBox) Example
43) Combo (ComboBox) Example 2
44) Complex Shell Example
45) Composite Shell Example 2
46) Control example snippet
47) Control Size Location
48) Convert between SWT Image and AWT BufferedImage
49) Converts a buffered image to SWT ImageData
50) Converts an AWT image to SWT
51) Coolbar Example
52) Coolbar Example 2
53) CoolBar example snippet
54) CoolBar Examples
55) CoolBarTest
56) Copy and Paste
57) Copy and paste data with the clipboard
58) Count Numbers
59) Create a bar and pull down menu (accelerators, mnemonics)
60) Create a caret
61) Create a caret (using an image)
62) Create a combo box (non-editable)
63) Create a coolbar (relayout when resized)
64) Create a CTabFolder with min and max buttons, as well as close button and
65) Create a dialog shell (prompt for a value)
66) Create a flat tool bar (images)
67) Create a FontData object which encapsulate the essential data to create a swt font
68) Create a label (a separator)
69) Create a label (with an image)
70) Create a link widget
71) Create a menu with radio items
72) Create a non-rectangular shell to simulate transparency
73) Create a popup menu (set in multiple controls)
74) Create a sash (allow it to be moved)
75) Create a sash form with three children
76) Create a scale (maximum 40, page increment 5)
77) Create a ScrolledComposite with wrapping content
78) Create a splash screen in SWT
79) Create a SWT dialog shell
80) Create a SWT table (columns, headers, lines)
81) Create a SWT table (no columns, no headers)
82) Create a SWT table with 1,000,000 items
83) Create a SWT tree (lazy)
84) Create a table (lazy)
85) Create a tool bar (text)
86) Create a tree
87) Create a virtual SWT table and add 1000 entries to it every 500 ms
88) Create an awt font by converting as much information as possible from the provided swt Font
89) Create an awt font by converting as much information as possible from the provided swt FontData
90) Create an icon (in memory)
91) Create and dispose children of a composite
92) Create and initialize a SWT spinner widget
93) Create fake tooltips for items in a SWT table
94) Create one repeating timer (every 500 ms)
95) Create tool bar (normal, hot and disabled images)
96) Create tool bar (wrap on resize)
97) Create tool tips for a tab folder, tool bar and control
98) Create two one shot timers (5000 ms, 2000 ms)
99) Create two ScrolledComposites that scroll in tandem
100) Creates a swt color instance to match the rgb values of the specified awt color alpha channel is not supported
101) Creates a swt color instance to match the rgb values of the specified awt paint
102) Creates a tabbed display with a single tab
103) Creates a tabbed display with four tabs and a few controls
104) Creates a toolbar
105) Creates an awt color instance to match the rgb values of the specified swt color
106) Creates an AWT MouseEvent from a swt event
107) Cursor
108) Custom Components
109) Default Button
110) Demonstrates a Canvas
111) Demonstrates a Sash
112) Demonstrates a Sash 2
113) Demonstrates a Sash 3
114) Demonstrates animation
115) Demonstrates animation It uses double buffering
116) Demonstrates BusyIndicator
117) Demonstrates Buttons
118) Demonstrates CellEditors
119) Demonstrates CheckboxTableViewer
120) Demonstrates CheckboxTreeViewer
121) Demonstrates CLabel
122) Demonstrates CLabel 2
123) Demonstrates CLabel gradients
124) Demonstrates combos (combobox)
125) Demonstrates ControlEditor
126) Demonstrates ControlEditor 2
127) Demonstrates ControlListeners
128) Demonstrates CTabFolder
129) Demonstrates drawing an Arc
130) Demonstrates drawing lines
131) Demonstrates drawing ovals
132) Demonstrates drawing points It draws a sine wave
133) Demonstrates drawing polygons
134) Demonstrates FileDialog
135) Demonstrates FocusListener
136) Demonstrates FontMetrics and extents
137) Demonstrates groups
138) Demonstrates how to draw images
139) Demonstrates how to draw text
140) Demonstrates how to draw text in colors
141) Demonstrates how to draw vertical text
142) Demonstrates Labels
143) Demonstrates LineBackgroundListeners
144) Demonstrates Lists
145) Demonstrates ListViewer
146) Demonstrates menus
147) Demonstrates mouse events
148) Demonstrates multiline comments
149) Demonstrates PopupList
150) Demonstrates PreferenceStore
151) Demonstrates printing images
152) Demonstrates printing text
153) Demonstrates ProgressBar
154) Demonstrates SashForm
155) Demonstrates SashForm Advanced
156) Demonstrates scroll bars
157) Demonstrates ScrolledComposite
158) Demonstrates Sliders
159) Demonstrates StyleRanges
160) Demonstrates TableCursor
161) Demonstrates TableEditor
162) Demonstrates TableTree
163) Demonstrates TableTree (Table Tree)
164) Demonstrates TableTreeViewer 2
165) Demonstrates TableViewers
166) Demonstrates text fields
167) Demonstrates the ColorDialog class
168) Demonstrates the custom InputDialog class
169) Demonstrates the DirectoryDialog class
170) Demonstrates the effects of the flags on the constructor
171) Demonstrates the FontDialog class
172) Demonstrates the MessageBox class
173) Demonstrates the SWT VIRTUAL style
174) Demonstrates TreeEditor
175) Demonstrates TreeViewer
176) Demonstrates various listeners
177) Demonstrates ViewForm
178) Detect a selection or check event in a table (SWT CHECK)
179) Detect a selection or check event in a tree (SWT CHECK)
180) Detect CR in a text or combo control (default selection)
181) Detect Mouse Down In SWT Tree Item
182) Detect mouse enter, exit and hover events
183) Detect selection events in a link widget
184) Detect when the user scrolls a text control
185) Dialog Example
186) Dialog Examples
187) Dialog Shell
188) Dir File Selection
189) DirectoryDialog
190) Display
191) Display an animated GIF
192) Display an image in a group
193) Display busy cursor during long running task
194) Display example snippet
195) Displays a single-selection tree, a multi-selection tree, and a checkbox tree
196) Displays a table
197) Displays a vertical sash
198) Displays ASCII Codes
199) Displays information about the display device
200) Double Buffer
201) Drag and Drop
202) Drag and Drop example snippet
203) Draw a rectangle using the org eclipse opengl OpenGL binding
204) Draw a rotating torus using the JOGL OpenGL binding
205) Draw a rotating torus using the LWJGL OpenGL binding
206) Draw an X using AWT Graphics
207) Draw Graphics2D stuff on a swt composite
208) Draw Images Example
209) Draw internationalized styled text on a shell
210) Draw lines and polygons with different cap and join styles
211) Draw Round Rectangle
212) Draw Text Demo
213) Draw2D Sample
214) Drawing with transformations, paths and alpha blending
215) Drawings
216) Drop-down a chevron menu containing hidden tool items
217) DropDown Demo
218) Dropped data type depends on target item in table
219) Eclipse Plug In RCP Example Plugin
220) Eclipse PlugIn FlowChart
221) Edit a cell in a SWT table (in place, fancy)
222) Edit the text of a SWT table item (in place)
223) Email Form
224) Embed a JTable in SWT (no flicker)
225) Embed Swing and AWT in SWT
226) Embed Word in an applet
227) Enable menu items dynamically (when menu shown)
228) Enabledisable menu depending on clipboard content availability
229) Engine for Calculator by Michael Schmidt
230) Exclude a widget from a GridLayout
231) File Browser Demo
232) File Browser JFace
233) File Browser Sample
234) File Dialog Example
235) File Icon Util
236) File Viewer
237) File Viewer example in SWT
238) FileDialog
239) Fill a menu dynamically (when menu shown)
240) FillLayout Example
241) FillLayout Horizontal
242) FillLayout Vertical
243) Find a SWT table cell from mouse down (works for any table style)
244) Find a table cell from mouse down (SWT FULL_SELECTION)
245) Find the icon of the program that edits bmp files
246) First JFace application
247) First SWT
248) Floating point values in SWT Spinner
249) Focus Traversal
250) Font
251) Font Dialog Example
252) Force radio behavior on two different composites
253) Formatted Text
254) FormLayout
255) FormLayout Complex
256) FormLayout Example
257) FormLayout Form Attachment
258) FormLayout Simple
259) FormLayouts
260) FTP client
261) GC
262) GC Creation
263) GC example
264) Grid Layout Complex
265) Grid Layout Span
266) GridLayout 2x2
267) GridLayout Example
268) GridLayout Example 2
269) GridLayout Sample Grab Space
270) GridLayout with All Options
271) Group Example
272) Group Example 2
273) Group Examples
274) Group Label and Button
275) HelloWorld Display
276) access About, Preferences and Quit menus on carbon
277) create CustomControl in SWT
278) create your own dialog classes
279) draw directly on an SWT Control
280) implement hover help feedback using the MouseTrackListener
281) order 1000 elements in a swt column table with O(n log(n)) complexity! using Comparator and Array sort() implemen
282) resize the Label when the Shell resizes using a Layout
283) resize the Label when the Shell resizes using a Listener mechanism
284) HTML Explorer
285) HTML Explorer based on JFace
286) HTML Form
287) Icon Selector
288) Illustrates dragging
289) Illustrates multithread UI programming issues
290) Image Analyzer in SWT
291) Image Basics
292) Image Button
293) ImageRegistry Demo
294) ImageViewer
295) Implement a simple splitter (with a 20 pixel limit)
296) Implement tab traversal (behave like a tab group)
297) Implements a web browser
298) Implements a web browser 2
299) Implements syntax coloring using the StyledText API
300) Insert a SWT table column (at an index)
301) Insert a SWT table item (at an index)
302) Insert a SWT tree item (at an index)
303) Insert widgets into a grid layout
304) Intercept mouse events (drag a button with the mouse)
305) Invoke an external batch file
306) Invoke the system text editor on autoexec bat
307) Java Source code Viewer
308) Jface ApplicationWindow
309) JFace preferences
310) JFace preferences and field editors
311) JFace Window
312) JFaces ErrorDialog class
313) JFaces IconAndMessageDialog
314) JFaces InputDialog
315) JFaces MessageDialog
316) JFaces ProgressMonitorDialog
317) JFaces TitleAreaDialog
318) Key Listener Example
319) Label Highlighting
320) Label Highlighting 2
321) Label Highlighting 3
322) Label Separator
323) Label Wrap
324) Layout Components
325) Layout Example
326) Layout Terms
327) Limit selection to items that match a pattern in SWT Tree
328) List Demo
329) List Example
330) List Example 2
331) List Example 3
332) Make a toggle button have radio behavior
333) Menu Examples
334) Menu Shell
335) Menu Shell 2
336) Menu Shell 3
337) Menu Shell 4
338) Menu Shell 5
339) Menu Shell 6
340) MessageBox Example
341) Modify HTML title tag
342) ModifyEvent
343) Monitor example
344) Mouse Event Listener
345) Mouse Listener Example
346) Mouse Move Listener Example
347) Mouse Track Example
348) MVC Example for SWT
349) Navigate a SWT table cells with arrow keys
350) No Layout
351) Non Rectangular Window in SWT
352) Number Input Dialog
353) OLE and ActiveX example
354) OLE and ActiveX example snippet
355) Open a shell maximized (full screen)
356) Open a shell minimized (iconified)
357) Palettes
358) Place a combo box in a tool bar
359) Place a drop down menu in a tool bar
360) Place a progress bar in a SWT table
361) Place an icon with a popup menu on the system tray
362) Place arbitrary controls in a SWT table
363) Prevent a shell from closing (prompt the user)
364) Prevent an item from closing
365) Prevent escape from closing a SWT dialog
366) Prevent Tab from traversing out of a control
367) Print Dialog Example
368) Print Hello World in black, outlined in red, to default printer
369) Print KTable (SWT Table)Example
370) Print selected items in a list
371) Print selected items in a SWT table
372) Print selected items in a SWT tree
373) Print text to printer, with word wrap and pagination
374) Printing Example
375) Professional Shell
376) ProgressBar Example
377) ProgressBar Examples
378) Prompt for a password (set the echo character)
379) Query DOM node value
380) Radio Buttons
381) Reading and writing to a SAFEARRAY
382) Remarks Text
383) Remove selected items in a SWT table
384) Render HTML that includes relative links from memory
385) Reorder columns and reorder columns programmatically
386) Resize a text control (show about 10 characters)
387) Resize columns as SWT table resizes
388) Returns an AWT point with the same coordinates as the specified SWT point
389) Returns an SWT point with the same coordinates as the specified AWT point
390) Returns an SWT point with the same coordinates as the specified AWT point (rounded to integer values)
391) Ring Shell
392) Rotate and flip an image
393) Row Layout Horizontal
394) Row Layout Test
395) RowLayout Example
396) Running a script within IE
397) Sample Combo
398) Sample List
399) Sample ListViewer
400) Sample Slider
401) Sample Styled Text
402) Sash Example
403) SashForm Example
404) Scale Example
405) Scales
406) Script MultiTextEdit
407) Scroll a child control automatically
408) Scroll a control in a scrolled composite
409) Scroll a SWT table (set the top index)
410) Scroll an image (flicker free, no double buffering)
411) Scroll SWT widgets into view when they get focus
412) Search Style Text
413) Select all the text in the control
414) Select an index (select and scroll) in a SWT table
415) SelectionListener and DisposeListener
416) Set icons with different resolutions
417) Set the default button
418) Set the selection (start, end)
419) Set the tab traversal order of children
420) SetLine Background
421) Setting the font style, foreground and background colors of StyledText
422) Shared Menu in SWT
423) Shell Dialog Example
424) Shell Style
425) Shell Styles Example
426) Show a popup menu (wait for it to close)
427) Shows the extensions on the system and their associated programs
428) Shows the various styles of Decorations
429) Simple DND (Drag and Drop) Example
430) Simple File Browser in SWT Table
431) Simple Form 1
432) Simple Print
433) Simple Tree
434) Simplest ApplicationWindow
435) Simplest GridLayout
436) Simplest SWT
437) Simplest SWT application
438) Single Multi Lists
439) Slider Example
440) Small application
441) Sort a SWT table by column
442) Stack Layout Test
443) StackLayout Sample
444) Stop CR from going to the default button
445) Styled Text with highlighted Odd Line
446) SWT 2D Chart
447) SWT 2D Simple Demo
448) SWT 2D Unicode
449) SWT and Image
450) SWT and Thread
451) SWT Browser
452) SWT Browser Example
453) SWT Button
454) SWT Button Action
455) SWT Button Example Demo
456) SWT Calendar
457) SWT Clipboard Example
458) SWT Combo
459) SWT Completion Editor
460) SWT Composite Class
461) SWT Control in One Example
462) SWT CoolBar Test Demo
463) SWT Dialog Class
464) SWT DnD (Drag and drop) Composite
465) SWT DND (Drag and Drop) comprehensive Example
466) SWT Draw 2D
467) SWT Draw2D Example
468) SWT File Browser
469) SWT FillLayout
470) SWT FillLayout Composite
471) SWT FillLayout Sample
472) SWT Font Registry Example
473) SWT Form Layout Sample
474) SWT Graphics Example
475) SWT GridLayout
476) SWT GridLayout Demo
477) SWT GridLayout Sample
478) SWT Group demo
479) SWT Label With Text
480) SWT Layout Example in One
481) SWT List Composite
482) SWT List Example Demo
483) SWT List Selection Event
484) SWT Menu and menu event
485) SWT Menu Example
486) SWT Mouse
487) SWT Ole Frame
488) SWT OpenGL snippet
489) SWT Paint Example
490) SWT Print and 2D Graphics
491) SWT Radio Button
492) SWT RowLayout
493) SWT RowLayout Sample
494) SWT Shell
495) SWT Slider
496) SWT Sliders
497) SWT Spinner Sample
498) SWT Spinner Test
499) SWT Status Bar Demo
500) SWT StyledText
501) SWT Tab Control
502) SWT Table Editor
503) SWT Table Simple Demo
504) SWT Table Tree
505) SWT Text Editor
506) SWT Text Editor Demo
507) SWT Toolbar Demo
508) SWT Tree
509) SWT Tree Composite
510) SWT Tree Simple Demo
511) SWT Tree With Multi columns
512) SWT Undo Redo
513) SWT useful utilities
514) SWT Wizard Composite
515) SWT XML Editor
516) SWY CoolBarClass
517) SWY Radial Layout
518) Tabbed Example
519) TabFolder Example
520) Table Example
521) Table Example 2
522) Table Example 3
523) TableEditor example
524) Test ToolBar
525) Text and Label demo
526) Text Event
527) Text example snippet
528) Text to uppercase
529) Text with underline and strike through
530) TextField Example
531) TextField Example 2
532) TextField Example 3
533) TextField Example 4
534) TextField Example 5
535) The main plugin class to be used in the desktop
536) The source of a custom table class for Java SWT applications
537) This application has save,load, sorting, and searching functions common to basic address books
538) This class creates a complex toolbar
539) TitleAreaDialog
540) ToolBar Examples
541) Toolbar Shell Example
542) Toolbar Shell Example 2
543) Transfer type to transfer SWT ImageData objects
544) Transform a swt Rectangle instance into an AWT Rectangle
545) Transform an awt Rectangle2d instance into a swt Rectangle2d
546) Transparency
547) Tree Example
548) Tree Example 2
549) Turns e characters red using a LineStyleListener
550) UI Automation (for testing tools) snippet
551) Update a progress bar (from the UI thread)
552) Update a status line (Statusbar) when the pointer enters a ToolItem
553) Update a status line when an item is armed
554) Update a SWT progress bar (from another thread)
555) Update SWT table item text
556) Use of Java2D on SWT or Draw2D graphical context
557) Use of Radial Layout
558) User name Password Dialog
559) User Password
560) Uses a web browser to display
561) Utility class for event handling
562) Utility methods for drawing graphics
563) Various JFace registries
564) Verify input (format for date)
565) Verify input (only allow digits)
566) ViewForm Example
567) Web Browser Composite
568) Widget Styles
569) Widget Test
570) Widget Test 2
571) Wizard Demo
572) Word Jumbles
573) Word OLE
574) Wrap Lines
575) XOR
576) Yes No Icon MessageBox